using Lidgren.Network;


namespace _3DTicTacToe.Net
{
    public struct NetInfoContainer
    {
        public NetBuffer Buffer;
        public NetMessageType Type;
        public NetConnection Connection;

        public NetInfoContainer(NetBuffer buffer, NetMessageType type,
            NetConnection connection)
        {
            Buffer = buffer;
            Type = type;
            Connection = connection;
        }

        public NetInfoContainer(NetBuffer buffer, NetMessageType type)
        {
            Buffer = buffer;
            Type = type;
            Connection = null;
        }
    }
}